<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./css/1.css">
</head>
<body>
     <!-- 行内js  写在标签内的js onclick 点击  alert弹出  -->
    <h1 onclick="alert('hello china')">第一天学习javascript</h1>
   
    <!-- 内嵌js  写在body结束之前的 script 标签 -->
    <script>
        alert(2024)
    </script>

    <!-- 外部js  写在body结束之前的 script标签 使用src属性引入外部js -->
    <script src="./js/1.js"></script>
</body>
</html>